package com.bbs.core.service;

import java.util.List;

import com.bbs.core.model.Post;
import com.bbs.core.model.Topic;
import com.bbs.core.model.User;

/**
 * Created by Administrator on 2017/8/16.
 */
public interface TopicService {

	/**
	 * 保存一条新增的主题
	 * @param topic
	 * @param post
	 * @param user
	 */
	void saveTopic(Topic topic, Post post, User user);

	void deleteTopic(int id);

	void updateTopic(Topic topic);

	List<Topic> getNiceTopics();

	List<Topic> getHotTopics();

	Topic getTopicByPrimaryKey(int id);

	List<Topic> getAllTopics();

	List<Topic> queryMyMessageTopic(int userId);

	Integer queryMyMessageTopicCount(int userId);

	List<Topic> findTopicsByPage(int pageNum, int pageSize);
	
}
